package com.haiya.observer.ratecase;

public class RMBRate extends Rate {
    @Override
    public void change(int number) {
        if (number >= 0) {
            System.out.println("人民币利率增值: " + number);
        } else {
            System.out.println("人民币利率贬值: " + number);
        }

        for (Company company : companys) {
            company.response(number);
        }
    }
}
